import api from './index'

// 获取Token
export const getToken = (params) => {
  return api.post('/third-party/get-token', params)
}

// 获取新的流量数据
export const getNewTrafficData = (params) => {
  return api.post('/third-party/new-traffic-data', params)
}

// 获取原流量数据（兼容性）
export const getTrafficData = (params) => {
  return api.post('/third-party/traffic-data', params)
}